﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EndAnim : MonoBehaviour
{
    public IEnumerator End(List<hexagon> path)
    {
        for(int i = path.Count-1; i >= 0; i--)
        {
            transform.position = path[i].transform.position;
            yield return new WaitForSeconds(0.3f);
        }
        transform.position = new Vector3(-500, -500, 0);
    }
}
